package cn.hzc.fortess.system.common;

public enum AttrDataPriority {


    RW(4, "rw"),

    R(2, "r"),

    HIDE(1, "hide");

    Integer val;
    String rw;

    AttrDataPriority(Integer code, String rw) {
        this.val = code;
        this.rw = rw;
    }

    public Integer getPriority() {
        return this.val;
    }


    public static Integer findPriority(String rw) {
        for (AttrDataPriority e : AttrDataPriority.values()) {
            if (e.rw.equals(rw)) {
                return e.val;
            }
        }
        return null;
    }
}
